package com.matrix.java.chap_18;

public class Ex18_03 {
    public static void main(String[] args) {
        System.out.println(gcd(10, 15));
    }

    public static int gcd(int m, int n) {
        return m % n == 0 ? n : gcd(n, m % n);
    }
}
